package com.gk.study;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;


//@SpringBootApplication
//public class MySpringApplication {
//
//    public static void main(String[] args) {
//        SpringApplication.run(MySpringApplication.class, args);
//    }
//
//}

@Slf4j
@ImportResource("classpath*:spring-*.xml")
@SpringBootApplication
public class MySpringApplication {
    public static void main(String[] args) {
        try {
            SpringApplication.run(MySpringApplication.class, args);
            System.out.println("Server startup done.");
        }catch (Exception e){
            log.error("服务启动报错", e);
        }
    }
}

